import request from '@/utils/request'

// 创建RFID更换记录
export function createRfidChangeRecord(data) {
  return request({
    url: '/hs/rfid-change-record/create',
    method: 'post',
    data: data
  })
}

// 更新RFID更换记录
export function updateRfidChangeRecord(data) {
  return request({
    url: '/hs/rfid-change-record/update',
    method: 'put',
    data: data
  })
}

// 删除RFID更换记录
export function deleteRfidChangeRecord(id) {
  return request({
    url: '/hs/rfid-change-record/delete?id=' + id,
    method: 'delete'
  })
}

// 获得RFID更换记录
export function getRfidChangeRecord(id) {
  return request({
    url: '/hs/rfid-change-record/get?id=' + id,
    method: 'get'
  })
}

// 获得RFID更换记录分页
export function getRfidChangeRecordPage(params) {
  return request({
    url: '/hs/rfid-change-record/page',
    method: 'get',
    params
  })
}
// 导出RFID更换记录 Excel
export function exportRfidChangeRecordExcel(params) {
  return request({
    url: '/hs/rfid-change-record/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}